import fetch from '@/utils/fetch'

export function login(username, password) {
  return fetch({
    url: '/oauth/web/token',
    method: 'post',
    data: {
      "clientId": "",
      "ip": "",
      "password": password,
      "userName": username
    }
  })
}

export function getInfo() {
  let data = {}
  console.log('z走info接口')
  return fetch({
    url: '/menu/tree/user',
    method: 'post',
    data
  })
} 

export function logout() {
  return fetch({
    url: '/user/logout',
    method: 'post'
  })
}
